package code18_design.factory;

public abstract class Water {
	/**
	 * 水被喝
	 */
	public abstract void drink();
	
}
class Water1 extends Water {
	@Override
	public void drink() {
		System.out.println("喝了500ML矿泉水");
	}
}
class Water2 extends Water {
	@Override
	public void drink() {
		System.out.println("喝了330ML汽水");
	}
}
class Water3 extends Water {
	@Override
	public void drink() {
		System.out.println("喝了1L苏打水");
	}
}